# coding:utf-8
__author__ = 'Helen'
'''
description:配置全局参数
'''
import time, os

# 获取项目路径
# project_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)[0]), '.'))
project_path = os.path.abspath(os.path.join(os.path.dirname(os.path.split(os.path.realpath(__file__))[0]), '.'))
# 测试用例代码存放路径（用于构建suite,注意该文件夹下的文件都应该以test开头命名）
test_case_path = project_path + "\\src\\test_case"
# print u'日志路径：'+log_path
# 测试报告存储路径，并以当前时间作为报告名称前缀
report_path = project_path + "\\report\\"
report_name = report_path + time.strftime('%Y%m%d%H%S', time.localtime())
# 设置发送测试报告的公共邮箱、用户名和密码
smtp_sever = 'smtp.exmail.qq.com'  # 邮箱SMTP服务，各大运营商的smtp服务可以在网上找，然后可以在foxmail这些工具中验正
email_name = "888@x88.com"  # 发件人名称
email_password = "*888"  # 发件人登录密码
email_To = '888@qq.com;88@88.com'  # 收件人

# import os
# import time
# import os

# from appium import webdriver
# from selenium.webdriver.support.ui import WebDriverWait
#  # 初始化appium-desktop
# desired_caps = {}
# # 使用哪种移动平台
# desired_caps['platformName'] = 'Android'
# # Android版本
# desired_caps['platformVersion'] = '6.0'
# # desired_caps['platformVersion'] = '5.1.1'
# # 启动哪种设备，是真机还是模拟器？
# desired_caps['deviceName'] = 'HUAWEI'
# # desired_caps['deviceName'] = 'Meizu MX4 Pro'
# # App的绝对路径
# desired_caps['appPackage'] = 'com.lj.ljshell'
# desired_caps['appActivity'] = '.ljshell'
# # desired_caps['appWaitActivity']='.HOMEWORK'
# # desired_caps['app'] = PATH('D:\kuyu.apk')
#
# driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)  # 初始化
# desired_caps['unicodeKeyboard'] = True,  # 使用unicodeKeyboard的编码方式来发送字符串
# desired_caps['resetKeyboard'] = True  # 将键盘给隐藏起来
